<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <meta name="verify-v1" content="SdRBVon6ibGV9Yn8T4djlPA2rnPl3wPKoyMFoL5qIpk=" />  {% block description %}
  {% endblock %}
  <title>
  {% if blog %}
    {{ blog.title|escape }}
  {% else %}
    {% if tag %}{{ tag|escape }} - {% endif %}{{ config.site_title }}
  {% endif %}
  </title>
  <link href="{{config.url_blog}}/rss/{% if tag %}?tag={{tag|encode|urlencode}}{% endif %}" rel="alternate" type="application/rss+xml" title={{ config.header_title }}/>
  <link rel="stylesheet" type="text/css" href="/{{ config.url_themes }}/{{ config.theme }}/style.css">
  {% include "scripts.html" %}
  {% block head %}
  {% endblock %}
</head>

<body>
<div id="container">
<div id="header">
  <div><h3 id="blogtitle">{{ config.header_title }}</h3></div>&nbsp;&nbsp;  
  {% if user %}
  {{ lang.welcome }}: {{ user }}, 
  {% endif %}
  
  <a href="/">{{ lang.home }}</a>
  {% if ytblog_use_promotion %}<a href="{{config.url_blog}}/all/">{{ lang.all_blogs }}</a>{% endif %}

  {% if auth.add %}
  <a href="{{config.url_blog}}/add/">{{ lang.blog_add }}</a> 
  <a href="{{config.url_blog}}/my/">{{ lang.my_blog }}</a>
  {% endif %}

  {% if user %}
  <a href="{{ url }}">{{ lang.logout }}</a>  
  {% else %}
  <a href="{{ url }}">{{ lang.login }}</a>
  {% endif %}
</div>

{% for plugin in plugins_top %}
{% include plugin.config.view_path %}
{% endfor %}

<div id="mainbg">
<div id="right">
  {% block content %}
  {% endblock %}
  <script type="text/javascript">
    dp.SyntaxHighlighter.ClipboardSwf = '/{{ config.url_js }}/syntaxhighlighter/clipboard.swf';
    dp.SyntaxHighlighter.HighlightAll('code');
  </script> 
</div>
{% include "left.html" %}
</div>

{% for plugin in plugins_bottom %}
{% include plugin.config.view_path %}
{% endfor %}

</div>
</body>
</html>